home *** CD-ROM | disk | FTP | other *** search
/ Mac Power 1997 January / macpower199701.bin / AMUG / Programming_10 / Videotoolbox 96-08-22-c.sit / VideoToolbox / VideoToolboxSources / MaximizeConsoleHeight.c < prev    next >
MacBinary  |  1995-08-13  |  6.1 KB  |  [TEXT/CWIE]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: MacBinary (archive/macBinary).

You can browse this item here: MaximizeConsoleHeight.c

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert Compact Compressed (Unix) (archive/compact) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Sun Aug 13 19:51:02 1995, modified Sun Aug 13 19:51:02 1995, creator 'CWIE', type ASCII, 5318 bytes "MaximizeConsoleHeight.c" , at 0x1546 728 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[CWIE]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 17 4d 61 78 69 6d 69 | 7a 65 43 6f 6e 73 6f 6c |..Maximi|zeConsol|
|00000010| 65 48 65 69 67 68 74 2e | 63 00 00 00 00 00 00 00 |eHeight.|c.......|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 57 49 | 45 01 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 14 c6 00 | 00 02 d8 ac 54 40 66 ac |........|....T@f.|
|00000060| 54 40 66 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |T@f.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 8f 83 00 00 |........|........|
|00000080| 2f 2a 0d 4d 61 78 69 6d | 69 7a 65 43 6f 6e 73 6f |/*.Maxim|izeConso|
|00000090| 6c 65 48 65 69 67 68 74 | 2e 63 0d 42 6f 74 68 20 |leHeight|.c.Both |
|000000a0| 54 48 49 4e 4b 20 43 20 | 61 6e 64 20 4d 65 74 72 |THINK C |and Metr|
|000000b0| 6f 77 65 72 6b 73 20 43 | 6f 64 65 57 61 72 72 69 |owerks C|odeWarri|
|000000c0| 6f 72 20 43 20 70 72 6f | 76 69 64 65 20 61 20 62 |or C pro|vide a b|
|000000d0| 75 69 6c 74 2d 69 6e 20 | 63 6f 6e 73 6f 6c 65 20 |uilt-in |console |
|000000e0| 66 6f 72 20 73 74 64 69 | 6e 0d 61 6e 64 20 73 74 |for stdi|n.and st|
|000000f0| 64 6f 75 74 2e 20 54 68 | 61 74 20 63 6f 6e 73 6f |dout. Th|at conso|
|00000100| 6c 65 20 69 73 20 6c 65 | 73 73 20 75 73 65 66 75 |le is le|ss usefu|
|00000110| 6c 20 74 68 61 6e 20 69 | 74 20 6d 69 67 68 74 20 |l than i|t might |
|00000120| 62 65 20 62 65 63 61 75 | 73 65 20 69 74 20 6f 70 |be becau|se it op|
|00000130| 65 6e 73 20 74 6f 0d 6f | 6e 6c 79 20 61 20 73 6d |ens to.o|nly a sm|
|00000140| 61 6c 6c 20 73 69 7a 65 | 2c 20 70 72 65 73 75 6d |all size|, presum|
|00000150| 61 62 6c 79 20 64 65 73 | 69 67 6e 65 64 20 74 6f |ably des|igned to|
|00000160| 20 66 69 74 20 6f 6e 20 | 74 68 65 20 74 69 6e 79 | fit on |the tiny|
|00000170| 20 73 63 72 65 65 6e 20 | 6f 66 20 61 20 4d 61 63 | screen |of a Mac|
|00000180| 20 50 6c 75 73 2c 0d 69 | 2e 65 2e 20 74 68 65 20 | Plus,.i|.e. the |
|00000190| 6c 6f 77 65 73 74 20 63 | 6f 6d 6d 6f 6e 20 64 65 |lowest c|ommon de|
|000001a0| 6e 6f 6d 69 6e 61 74 6f | 72 2c 20 66 6f 72 20 70 |nominato|r, for p|
|000001b0| 6f 72 74 61 62 69 6c 69 | 74 79 2e 20 4d 61 78 69 |ortabili|ty. Maxi|
|000001c0| 6d 69 7a 65 43 6f 6e 73 | 6f 6c 65 48 65 69 67 68 |mizeCons|oleHeigh|
|000001d0| 74 0d 72 65 71 75 65 73 | 74 73 20 74 68 61 74 20 |t.reques|ts that |
|000001e0| 74 68 65 20 63 6f 6e 73 | 6f 6c 65 20 6f 70 65 6e |the cons|ole open|
|000001f0| 20 74 6f 20 74 68 65 20 | 66 75 6c 6c 20 68 65 69 | to the |full hei|
|00000200| 67 68 74 20 6f 66 20 79 | 6f 75 72 20 6d 61 69 6e |ght of y|our main|
|00000210| 20 73 63 72 65 65 6e 2e | 20 54 68 69 73 0d 6d 61 | screen.| This.ma|
|00000220| 6b 65 73 20 67 6f 6f 64 | 20 75 73 65 20 6f 66 20 |kes good| use of |
|00000230| 79 6f 75 72 20 73 63 72 | 65 65 6e 2c 20 77 68 69 |your scr|een, whi|
|00000240| 6c 65 20 6d 61 69 6e 74 | 61 69 6e 69 6e 67 20 74 |le maint|aining t|
|00000250| 68 65 20 70 6f 72 74 61 | 62 69 6c 69 74 79 20 6f |he porta|bility o|
|00000260| 66 20 79 6f 75 72 0d 61 | 70 70 6c 69 63 61 74 69 |f your.a|pplicati|
|00000270| 6f 6e 2e 20 43 61 6c 6c | 20 4d 61 78 69 6d 69 7a |on. Call| Maximiz|
|00000280| 65 43 6f 6e 73 6f 6c 65 | 48 65 69 67 68 74 28 29 |eConsole|Height()|
|00000290| 20 42 45 46 4f 52 45 20 | 6f 70 65 6e 69 6e 67 20 | BEFORE |opening |
|000002a0| 74 68 65 20 63 6f 6e 73 | 6f 6c 65 2c 20 69 2e 65 |the cons|ole, i.e|
|000002b0| 2e 0d 62 65 66 6f 72 65 | 20 79 6f 75 72 20 66 69 |..before| your fi|
|000002c0| 72 73 74 20 70 72 69 6e | 74 66 28 29 2e 0d 0d 54 |rst prin|tf()...T|
|000002d0| 6f 20 73 65 74 20 74 68 | 65 20 57 49 44 54 48 20 |o set th|e WIDTH |
|000002e0| 6f 66 20 74 68 65 20 54 | 48 49 4e 4b 20 43 20 63 |of the T|HINK C c|
|000002f0| 6f 6e 73 6f 6c 65 2c 20 | 62 65 66 6f 72 65 20 6f |onsole, |before o|
|00000300| 70 65 6e 69 6e 67 20 69 | 74 2c 20 64 6f 20 74 68 |pening i|t, do th|
|00000310| 69 73 3a 0d 09 23 69 6e | 63 6c 75 64 65 20 3c 63 |is:..#in|clude <c|
|00000320| 6f 6e 73 6f 6c 65 2e 68 | 3e 0d 09 2e 2e 2e 0d 09 |onsole.h|>.......|
|00000330| 63 6f 6e 73 6f 6c 65 5f | 6f 70 74 69 6f 6e 73 2e |console_|options.|
|00000340| 6e 63 6f 6c 73 3d 31 30 | 30 3b 0d 0d 54 6f 20 73 |ncols=10|0;..To s|
|00000350| 65 74 20 74 68 65 20 77 | 69 64 74 68 20 6f 66 20 |et the w|idth of |
|00000360| 74 68 65 20 43 6f 64 65 | 57 61 72 72 69 6f 72 20 |the Code|Warrior |
|00000370| 63 6f 6e 73 6f 6c 65 2c | 20 62 65 66 6f 72 65 20 |console,| before |
|00000380| 6f 70 65 6e 69 6e 67 20 | 69 74 2c 20 64 6f 20 74 |opening |it, do t|
|00000390| 68 69 73 3a 0d 09 23 69 | 6e 63 6c 75 64 65 20 3c |his:..#i|nclude <|
|000003a0| 53 49 4f 55 58 2e 68 3e | 0d 09 2e 2e 2e 0d 09 74 |SIOUX.h>|.......t|
|000003b0| 53 49 4f 55 58 53 65 74 | 74 69 6e 67 73 2e 63 6f |SIOUXSet|tings.co|
|000003c0| 6c 75 6d 6e 73 3d 31 30 | 30 3b 0d 49 6e 63 69 64 |lumns=10|0;.Incid|
|000003d0| 65 6e 74 61 6c 6c 79 2c | 20 56 69 64 65 6f 54 6f |entally,| VideoTo|
|000003e0| 6f 6c 62 6f 78 2e 68 20 | 69 6e 63 6c 75 64 65 73 |olbox.h |includes|
|000003f0| 20 62 6f 74 68 20 54 48 | 49 4e 4b 20 43 27 73 20 | both TH|INK C's |
|00000400| 63 6f 6e 73 6f 6c 65 2e | 68 20 61 6e 64 20 43 6f |console.|h and Co|
|00000410| 64 65 57 61 72 72 69 6f | 72 27 73 20 53 49 4f 55 |deWarrio|r's SIOU|
|00000420| 58 2e 68 2c 0d 73 6f 20 | 79 6f 75 20 63 61 6e 20 |X.h,.so |you can |
|00000430| 6f 6d 69 74 20 74 68 65 | 20 23 69 6e 63 6c 75 64 |omit the| #includ|
|00000440| 65 20 73 74 61 74 65 6d | 65 6e 74 73 20 69 66 20 |e statem|ents if |
|00000450| 79 6f 75 27 72 65 20 61 | 6c 72 65 61 64 79 20 69 |you're a|lready i|
|00000460| 6e 63 6c 75 64 69 6e 67 | 20 56 69 64 65 6f 54 6f |ncluding| VideoTo|
|00000470| 6f 6c 62 6f 78 2e 68 2e | 0d 0d 4c 49 4d 49 54 41 |olbox.h.|..LIMITA|
|00000480| 54 49 4f 4e 3a 0d 49 6e | 20 4a 75 6e 65 20 31 39 |TION:.In| June 19|
|00000490| 39 34 20 4d 69 6b 65 20 | 47 61 72 76 65 72 20 72 |94 Mike |Garver r|
|000004a0| 65 70 6f 72 74 65 64 20 | 74 68 61 74 20 6f 6e 20 |eported |that on |
|000004b0| 61 20 4d 61 63 20 50 6c | 75 73 20 72 75 6e 6e 69 |a Mac Pl|us runni|
|000004c0| 6e 67 20 53 79 73 74 65 | 6d 20 36 2e 30 37 20 77 |ng Syste|m 6.07 w|
|000004d0| 69 74 68 20 61 6e 0d 61 | 74 74 61 63 68 65 64 20 |ith an.a|ttached |
|000004e0| 62 69 67 20 73 63 72 65 | 65 6e 20 74 68 65 20 63 |big scre|en the c|
|000004f0| 6f 6e 73 6f 6c 65 20 77 | 69 6e 64 6f 77 20 61 70 |onsole w|indow ap|
|00000500| 70 65 61 72 73 20 6f 6e | 20 74 68 65 20 4d 61 63 |pears on| the Mac|
|00000510| 20 50 6c 75 73 20 73 63 | 72 65 65 6e 2c 20 61 73 | Plus sc|reen, as|
|00000520| 20 69 74 0d 73 68 6f 75 | 6c 64 2c 20 62 75 74 20 | it.shou|ld, but |
|00000530| 65 78 74 65 6e 64 73 20 | 77 65 6c 6c 20 70 61 73 |extends |well pas|
|00000540| 74 20 74 68 65 20 62 6f | 74 74 6f 6d 2c 20 22 73 |t the bo|ttom, "s|
|00000550| 6f 20 49 20 63 6f 75 6c | 64 20 73 65 65 20 6e 6f |o I coul|d see no|
|00000560| 6e 65 20 6f 66 20 74 68 | 65 20 74 65 78 74 0d 75 |ne of th|e text.u|
|00000570| 6e 6c 65 73 73 20 49 20 | 6d 6f 76 65 64 20 74 68 |nless I |moved th|
|00000580| 65 20 77 69 6e 64 6f 77 | 20 6f 6e 74 6f 20 74 68 |e window| onto th|
|00000590| 65 20 6c 61 72 67 65 20 | 73 63 72 65 65 6e 2e 22 |e large |screen."|
|000005a0| 20 54 68 69 73 20 68 61 | 70 70 65 6e 73 20 62 65 | This ha|ppens be|
|000005b0| 63 61 75 73 65 2c 20 77 | 68 65 6e 0d 43 6f 6c 6f |cause, w|hen.Colo|
|000005c0| 72 20 51 75 69 63 6b 44 | 72 61 77 20 69 73 20 6e |r QuickD|raw is n|
|000005d0| 6f 74 20 61 76 61 69 6c | 61 62 6c 65 2c 20 4d 61 |ot avail|able, Ma|
|000005e0| 78 69 6d 69 7a 65 43 6f | 6e 73 6f 6c 65 48 65 69 |ximizeCo|nsoleHei|
|000005f0| 67 68 74 28 29 20 72 65 | 73 6f 72 74 73 20 74 6f |ght() re|sorts to|
|00000600| 20 75 73 69 6e 67 20 74 | 68 65 0d 43 72 73 72 50 | using t|he.CrsrP|
|00000610| 69 6e 20 72 65 63 74 20 | 74 6f 20 65 73 74 69 6d |in rect |to estim|
|00000620| 61 74 65 20 74 68 65 20 | 68 65 69 67 68 74 20 6f |ate the |height o|
|00000630| 66 20 74 68 65 20 6d 61 | 69 6e 20 73 63 72 65 65 |f the ma|in scree|
|00000640| 6e 2e 20 28 43 72 73 72 | 50 69 6e 20 69 73 20 74 |n. (Crsr|Pin is t|
|00000650| 68 65 0d 72 65 63 74 61 | 6e 67 6c 65 20 74 6f 20 |he.recta|ngle to |
|00000660| 77 68 69 63 68 20 74 68 | 65 20 63 75 72 73 6f 72 |which th|e cursor|
|00000670| 20 69 73 20 63 6f 6e 66 | 69 6e 65 64 2e 20 57 68 | is conf|ined. Wh|
|00000680| 65 6e 20 74 68 65 20 64 | 65 73 6b 74 6f 70 20 69 |en the d|esktop i|
|00000690| 73 6e 27 74 20 72 65 63 | 74 61 6e 67 75 6c 61 72 |sn't rec|tangular|
|000006a0| 0d 43 72 73 72 50 69 6e | 20 69 73 20 74 68 65 20 |.CrsrPin| is the |
|000006b0| 73 6d 61 6c 6c 65 73 74 | 20 72 65 63 74 61 6e 67 |smallest| rectang|
|000006c0| 6c 65 20 74 68 61 74 20 | 63 6f 6e 74 61 69 6e 73 |le that |contains|
|000006d0| 20 74 68 65 20 64 65 73 | 6b 74 6f 70 2e 29 20 49 | the des|ktop.) I|
|000006e0| 20 64 6f 6e 27 74 20 6b | 6e 6f 77 20 68 6f 77 0d | don't k|now how.|
|000006f0| 74 6f 20 66 69 78 20 74 | 68 69 73 2e 20 49 66 20 |to fix t|his. If |
|00000700| 43 6f 6c 6f 72 20 51 75 | 69 63 6b 44 72 61 77 20 |Color Qu|ickDraw |
|00000710| 77 65 72 65 20 72 75 6e | 6e 69 6e 67 20 74 68 65 |were run|ning the|
|00000720| 6e 20 74 68 65 20 70 72 | 6f 67 72 61 6d 20 77 6f |n the pr|ogram wo|
|00000730| 75 6c 64 20 68 61 76 65 | 0d 63 6f 72 72 65 63 74 |uld have|.correct|
|00000740| 6c 79 20 67 6f 74 74 65 | 6e 20 74 68 65 20 62 6f |ly gotte|n the bo|
|00000750| 75 6e 64 73 20 6f 66 20 | 74 68 65 20 6d 61 69 6e |unds of |the main|
|00000760| 20 64 65 76 69 63 65 2c | 20 62 75 74 20 74 68 65 | device,| but the|
|00000770| 20 63 6f 6d 70 75 74 65 | 72 20 6c 61 63 6b 73 20 | compute|r lacks |
|00000780| 43 6f 6c 6f 72 0d 51 75 | 69 63 6b 44 72 61 77 2c |Color.Qu|ickDraw,|
|00000790| 20 73 6f 20 74 68 65 72 | 65 20 61 72 65 20 6e 6f | so ther|e are no|
|000007a0| 20 76 69 64 65 6f 20 64 | 65 76 69 63 65 20 72 65 | video d|evice re|
|000007b0| 63 6f 72 64 73 2c 20 6e | 6f 72 20 61 20 47 72 61 |cords, n|or a Gra|
|000007c0| 79 52 67 6e 20 73 74 72 | 75 63 74 75 72 65 20 74 |yRgn str|ucture t|
|000007d0| 6f 0d 63 6f 6e 73 75 6c | 74 2e 20 53 69 6e 63 65 |o.consul|t. Since|
|000007e0| 20 4d 61 78 69 6d 69 7a | 65 43 6f 6e 73 6f 6c 65 | Maximiz|eConsole|
|000007f0| 48 65 69 67 68 74 28 29 | 20 69 73 20 74 79 70 69 |Height()| is typi|
|00000800| 63 61 6c 6c 79 20 63 61 | 6c 6c 65 64 20 62 65 66 |cally ca|lled bef|
|00000810| 6f 72 65 20 51 75 69 63 | 6b 44 72 61 77 20 69 73 |ore Quic|kDraw is|
|00000820| 0d 69 6e 69 74 69 61 6c | 69 7a 65 64 20 77 65 20 |.initial|ized we |
|00000830| 63 61 6e 27 74 20 75 73 | 65 20 71 64 2e 73 63 72 |can't us|e qd.scr|
|00000840| 65 65 6e 42 69 74 73 2e | 62 6f 75 6e 64 73 20 28 |eenBits.|bounds (|
|00000850| 77 68 69 63 68 20 69 73 | 20 70 72 6f 62 61 62 6c |which is| probabl|
|00000860| 79 20 74 68 65 20 73 61 | 6d 65 20 61 73 0d 43 72 |y the sa|me as.Cr|
|00000870| 73 72 50 69 6e 20 72 65 | 63 74 20 61 6e 79 77 61 |srPin re|ct anywa|
|00000880| 79 29 2e 20 49 20 63 61 | 6e 27 74 20 74 68 69 6e |y). I ca|n't thin|
|00000890| 6b 20 6f 66 20 61 6e 79 | 20 77 61 79 20 66 6f 72 |k of any| way for|
|000008a0| 20 74 68 69 73 20 70 72 | 6f 67 72 61 6d 20 74 6f | this pr|ogram to|
|000008b0| 20 66 69 6e 64 20 6f 75 | 74 20 74 68 65 0d 63 6f | find ou|t the.co|
|000008c0| 72 72 65 63 74 20 68 65 | 69 67 68 74 20 6f 66 20 |rrect he|ight of |
|000008d0| 74 68 65 20 6d 61 69 6e | 20 73 63 72 65 65 6e 20 |the main| screen |
|000008e0| 75 6e 64 65 72 20 74 68 | 65 73 65 20 63 69 72 63 |under th|ese circ|
|000008f0| 75 6d 73 74 61 6e 63 65 | 73 2e 20 53 6f 20 49 20 |umstance|s. So I |
|00000900| 62 6c 61 6d 65 20 74 68 | 69 73 20 6f 6e 0d 74 68 |blame th|is on.th|
|00000910| 65 20 6e 65 63 65 73 73 | 61 72 79 20 63 6c 75 64 |e necess|ary clud|
|00000920| 67 65 20 69 6d 70 6c 69 | 63 69 74 20 69 6e 20 68 |ge impli|cit in h|
|00000930| 61 76 69 6e 67 20 74 77 | 6f 20 73 63 72 65 65 6e |aving tw|o screen|
|00000940| 73 20 69 6e 20 61 20 63 | 6f 6d 70 75 74 65 72 20 |s in a c|omputer |
|00000950| 6c 61 63 6b 69 6e 67 20 | 43 6f 6c 6f 72 0d 51 75 |lacking |Color.Qu|
|00000960| 69 63 6b 44 72 61 77 2c | 20 73 69 6e 63 65 20 31 |ickDraw,| since 1|
|00000970| 2d 62 69 74 20 51 75 69 | 63 6b 44 72 61 77 20 64 |-bit Qui|ckDraw d|
|00000980| 6f 65 73 6e 27 74 20 72 | 65 61 6c 6c 79 20 73 75 |oesn't r|eally su|
|00000990| 70 70 6f 72 74 20 6d 75 | 6c 74 69 70 6c 65 20 73 |pport mu|ltiple s|
|000009a0| 63 72 65 65 6e 73 2e 20 | 49 0d 62 65 6c 69 65 76 |creens. |I.believ|
|000009b0| 65 2c 20 62 75 74 20 64 | 69 64 6e 27 74 20 63 6f |e, but d|idn't co|
|000009c0| 6e 66 69 72 6d 2c 20 74 | 68 61 74 20 53 79 73 74 |nfirm, t|hat Syst|
|000009d0| 65 6d 20 37 20 70 72 6f | 76 69 64 65 73 20 33 32 |em 7 pro|vides 32|
|000009e0| 2d 62 69 74 20 51 75 69 | 63 6b 44 72 61 77 20 28 |-bit Qui|ckDraw (|
|000009f0| 77 68 69 63 68 0d 69 6e | 63 6c 75 64 65 73 20 43 |which.in|cludes C|
|00000a00| 6f 6c 6f 72 20 51 75 69 | 63 6b 44 72 61 77 29 20 |olor Qui|ckDraw) |
|00000a10| 6f 6e 20 61 6c 6c 20 63 | 6f 6d 70 75 74 65 72 73 |on all c|omputers|
|00000a20| 2e 0d 0d 48 49 53 54 4f | 52 59 3a 0d 31 2f 39 32 |...HISTO|RY:.1/92|
|00000a30| 09 64 67 70 20 77 72 6f | 74 65 20 69 74 2e 0d 38 |.dgp wro|te it..8|
|00000a40| 2f 32 37 2f 39 32 09 64 | 67 70 09 63 68 65 63 6b |/27/92.d|gp.check|
|00000a50| 20 66 6f 72 20 38 2d 62 | 69 74 20 71 75 69 63 6b | for 8-b|it quick|
|00000a60| 64 72 61 77 20 62 65 66 | 6f 72 65 20 75 73 69 6e |draw bef|ore usin|
|00000a70| 67 20 47 44 65 76 69 63 | 65 73 2e 0d 31 30 2f 31 |g GDevic|es..10/1|
|00000a80| 30 2f 39 32 20 64 67 70 | 20 52 65 64 75 63 65 64 |0/92 dgp| Reduced|
|00000a90| 20 6d 61 78 69 6d 75 6d | 20 63 6f 6e 73 6f 6c 65 | maximum| console|
|00000aa0| 20 68 65 69 67 68 74 20 | 62 79 20 6f 6e 65 20 70 | height |by one p|
|00000ab0| 69 78 65 6c 2c 20 73 6f | 20 61 73 20 6e 6f 74 20 |ixel, so| as not |
|00000ac0| 74 6f 20 63 6c 69 70 20 | 0d 09 09 09 64 69 73 70 |to clip |....disp|
|00000ad0| 6c 61 79 65 64 20 74 65 | 78 74 2e 0d 32 2f 32 32 |layed te|xt..2/22|
|00000ae0| 2f 39 33 09 64 67 70 20 | 72 65 70 6c 61 63 65 64 |/93.dgp |replaced|
|00000af0| 20 47 65 74 4d 42 61 72 | 48 65 69 67 68 74 28 29 | GetMBar|Height()|
|00000b00| 20 62 79 20 4d 42 61 72 | 48 65 69 67 68 74 2e 0d | by MBar|Height..|
|00000b10| 34 2f 31 36 2f 39 33 09 | 64 67 70 09 65 6e 68 61 |4/16/93.|dgp.enha|
|00000b20| 6e 63 65 64 20 74 6f 20 | 61 63 74 69 76 65 6c 79 |nced to |actively|
|00000b30| 20 73 75 70 70 6f 72 74 | 20 31 2d 62 69 74 20 51 | support| 1-bit Q|
|00000b40| 44 2c 20 72 61 74 68 65 | 72 20 74 68 61 6e 20 64 |D, rathe|r than d|
|00000b50| 6f 69 6e 67 20 6e 6f 74 | 68 69 6e 67 2e 0d 36 2f |oing not|hing..6/|
|00000b60| 33 2f 39 34 09 64 67 70 | 09 72 65 70 6c 61 63 65 |3/94.dgp|.replace|
|00000b70| 64 20 6c 6f 77 2d 6d 65 | 6d 6f 72 79 20 67 6c 6f |d low-me|mory glo|
|00000b80| 62 61 6c 20 4d 42 61 72 | 48 65 69 67 68 74 20 62 |bal MBar|Height b|
|00000b90| 79 20 47 65 74 4d 42 61 | 72 48 65 69 67 68 74 28 |y GetMBa|rHeight(|
|00000ba0| 29 2e 0d 36 2f 32 31 2f | 39 34 20 64 67 70 20 64 |)..6/21/|94 dgp d|
|00000bb0| 6f 63 75 6d 65 6e 74 65 | 64 20 6c 69 6d 69 74 61 |ocumente|d limita|
|00000bc0| 74 69 6f 6e 20 61 62 6f | 76 65 2e 0d 36 2f 32 38 |tion abo|ve..6/28|
|00000bd0| 2f 39 34 20 64 67 70 20 | 75 73 65 20 67 64 52 65 |/94 dgp |use gdRe|
|00000be0| 63 74 20 69 6e 73 74 65 | 61 64 20 6f 66 20 70 69 |ct inste|ad of pi|
|00000bf0| 78 6d 61 70 20 62 6f 75 | 6e 64 73 2c 20 77 68 69 |xmap bou|nds, whi|
|00000c00| 63 68 20 69 73 20 63 6f | 72 72 65 63 74 20 66 6f |ch is co|rrect fo|
|00000c10| 72 20 61 6e 79 20 64 65 | 76 69 63 65 2c 0d 6e 6f |r any de|vice,.no|
|00000c20| 74 20 6a 75 73 74 20 74 | 68 65 20 6d 61 69 6e 20 |t just t|he main |
|00000c30| 64 65 76 69 63 65 2e 0d | 31 30 2f 31 30 2f 39 34 |device..|10/10/94|
|00000c40| 20 64 67 70 20 61 64 64 | 65 64 20 73 75 70 70 6f | dgp add|ed suppo|
|00000c50| 72 74 20 66 6f 72 20 4d | 65 74 72 6f 77 65 72 6b |rt for M|etrowerk|
|00000c60| 73 20 43 6f 64 65 57 61 | 72 72 69 6f 72 20 43 2e |s CodeWa|rrior C.|
|00000c70| 0d 31 31 2f 31 37 2f 39 | 34 20 64 67 70 20 45 6c |.11/17/9|4 dgp El|
|00000c80| 69 6d 69 6e 61 74 65 64 | 20 6e 65 65 64 20 66 6f |iminated| need fo|
|00000c90| 72 20 54 48 49 4e 4b 20 | 43 27 73 20 4c 6f 4d 65 |r THINK |C's LoMe|
|00000ca0| 6d 2e 68 20 62 79 20 64 | 65 66 69 6e 69 6e 67 20 |m.h by d|efining |
|00000cb0| 4c 4d 47 65 74 43 72 73 | 72 50 69 6e 28 29 2e 0d |LMGetCrs|rPin()..|
|00000cc0| 31 2f 37 2f 39 35 20 64 | 67 70 20 75 70 64 61 74 |1/7/95 d|gp updat|
|00000cd0| 65 64 20 74 6f 20 43 57 | 35 2c 20 73 6f 20 74 68 |ed to CW|5, so th|
|00000ce0| 61 74 20 69 74 20 6e 6f | 77 20 77 6f 72 6b 73 20 |at it no|w works |
|00000cf0| 73 69 6d 69 6c 61 72 6c | 79 20 66 6f 72 20 62 6f |similarl|y for bo|
|00000d00| 74 68 20 54 48 49 4e 4b | 20 26 20 43 57 20 43 2e |th THINK| & CW C.|
|00000d10| 0d 2a 2f 0d 23 69 6e 63 | 6c 75 64 65 20 22 56 69 |.*/.#inc|lude "Vi|
|00000d20| 64 65 6f 54 6f 6f 6c 62 | 6f 78 2e 68 22 0d 23 69 |deoToolb|ox.h".#i|
|00000d30| 66 20 55 4e 49 56 45 52 | 53 41 4c 5f 48 45 41 44 |f UNIVER|SAL_HEAD|
|00000d40| 45 52 53 0d 09 23 69 6e | 63 6c 75 64 65 20 3c 4c |ERS..#in|clude <L|
|00000d50| 6f 77 4d 65 6d 2e 68 3e | 0d 23 65 6c 73 65 0d 09 |owMem.h>|.#else..|
|00000d60| 23 64 65 66 69 6e 65 20 | 4c 4d 47 65 74 4d 42 61 |#define |LMGetMBa|
|00000d70| 72 48 65 69 67 68 74 28 | 29 20 28 2a 20 28 73 68 |rHeight(|) (* (sh|
|00000d80| 6f 72 74 20 2a 29 20 30 | 78 30 42 41 41 29 0d 09 |ort *) 0|x0BAA)..|
|00000d90| 23 64 65 66 69 6e 65 20 | 4c 4d 53 65 74 4d 42 61 |#define |LMSetMBa|
|00000da0| 72 48 65 69 67 68 74 28 | 4d 42 61 72 48 65 69 67 |rHeight(|MBarHeig|
|00000db0| 68 74 56 61 6c 75 65 29 | 20 28 28 2a 20 28 73 68 |htValue)| ((* (sh|
|00000dc0| 6f 72 74 20 2a 29 20 30 | 78 30 42 41 41 29 20 3d |ort *) 0|x0BAA) =|
|00000dd0| 20 28 4d 42 61 72 48 65 | 69 67 68 74 56 61 6c 75 | (MBarHe|ightValu|
|00000de0| 65 29 29 0d 23 65 6e 64 | 69 66 0d 2f 2f 20 4e 4f |e)).#end|if.// NO|
|00000df0| 54 45 3a 20 41 70 70 6c | 65 27 73 20 55 6e 69 76 |TE: Appl|e's Univ|
|00000e00| 65 72 73 61 6c 20 48 65 | 61 64 65 72 73 20 66 61 |ersal He|aders fa|
|00000e10| 69 6c 20 74 6f 20 70 72 | 6f 76 69 64 65 20 61 6e |il to pr|ovide an|
|00000e20| 79 20 61 63 63 65 73 73 | 20 74 6f 20 43 72 73 72 |y access| to Crsr|
|00000e30| 50 69 6e 2c 20 73 6f 20 | 49 20 72 6f 6c 6c 65 64 |Pin, so |I rolled|
|00000e40| 20 6d 79 20 6f 77 6e 2e | 0d 23 64 65 66 69 6e 65 | my own.|.#define|
|00000e50| 20 4c 4d 47 65 74 43 72 | 73 72 50 69 6e 28 29 20 | LMGetCr|srPin() |
|00000e60| 28 2a 20 28 52 65 63 74 | 20 2a 29 20 30 78 38 33 |(* (Rect| *) 0x83|
|00000e70| 34 29 0d 0d 76 6f 69 64 | 20 4d 61 78 69 6d 69 7a |4)..void| Maximiz|
|00000e80| 65 43 6f 6e 73 6f 6c 65 | 48 65 69 67 68 74 28 76 |eConsole|Height(v|
|00000e90| 6f 69 64 29 0d 7b 0d 09 | 6c 6f 6e 67 20 71 44 3b |oid).{..|long qD;|
|00000ea0| 0d 09 52 65 63 74 20 72 | 3b 0d 09 0d 09 47 65 73 |..Rect r|;....Ges|
|00000eb0| 74 61 6c 74 28 67 65 73 | 74 61 6c 74 51 75 69 63 |talt(ges|taltQuic|
|00000ec0| 6b 64 72 61 77 56 65 72 | 73 69 6f 6e 2c 26 71 44 |kdrawVer|sion,&qD|
|00000ed0| 29 3b 0d 09 69 66 28 71 | 44 3e 3d 67 65 73 74 61 |);..if(q|D>=gesta|
|00000ee0| 6c 74 38 42 69 74 51 44 | 29 20 72 3d 28 2a 47 65 |lt8BitQD|) r=(*Ge|
|00000ef0| 74 4d 61 69 6e 44 65 76 | 69 63 65 28 29 29 2d 3e |tMainDev|ice())->|
|00000f00| 67 64 52 65 63 74 3b 0d | 09 65 6c 73 65 20 72 3d |gdRect;.|.else r=|
|00000f10| 4c 4d 47 65 74 43 72 73 | 72 50 69 6e 28 29 3b 09 |LMGetCrs|rPin();.|
|00000f20| 2f 2f 20 43 61 6e 27 74 | 20 75 73 65 20 71 64 2e |// Can't| use qd.|
|00000f30| 73 63 72 65 65 6e 42 69 | 74 73 2e 62 6f 75 6e 64 |screenBi|ts.bound|
|00000f40| 73 20 27 63 61 75 73 65 | 20 71 64 20 6d 61 79 20 |s 'cause| qd may |
|00000f50| 6e 6f 74 20 79 65 74 20 | 62 65 20 69 6e 69 74 65 |not yet |be inite|
|00000f60| 64 2e 0d 09 23 69 66 20 | 28 54 48 49 4e 4b 5f 43 |d...#if |(THINK_C|
|00000f70| 20 7c 7c 20 54 48 49 4e | 4b 5f 43 50 4c 55 53 20 | || THIN|K_CPLUS |
|00000f80| 7c 7c 20 53 59 4d 41 4e | 54 45 43 5f 43 29 0d 09 ||| SYMAN|TEC_C)..|
|00000f90| 09 63 6f 6e 73 6f 6c 65 | 5f 6f 70 74 69 6f 6e 73 |.console|_options|
|00000fa0| 2e 74 6f 70 3d 4c 4d 47 | 65 74 4d 42 61 72 48 65 |.top=LMG|etMBarHe|
|00000fb0| 69 67 68 74 28 29 2b 31 | 39 3b 09 2f 2f 20 61 6c |ight()+1|9;.// al|
|00000fc0| 6c 6f 77 20 66 6f 72 20 | 6d 65 6e 75 20 62 61 72 |low for |menu bar|
|00000fd0| 20 61 6e 64 20 74 69 74 | 6c 65 20 62 61 72 0d 09 | and tit|le bar..|
|00000fe0| 09 63 6f 6e 73 6f 6c 65 | 5f 6f 70 74 69 6f 6e 73 |.console|_options|
|00000ff0| 2e 6c 65 66 74 3d 31 3b | 0d 09 09 63 6f 6e 73 6f |.left=1;|...conso|
|00001000| 6c 65 5f 6f 70 74 69 6f | 6e 73 2e 6e 72 6f 77 73 |le_optio|ns.nrows|
|00001010| 3d 72 2e 62 6f 74 74 6f | 6d 2d 34 2d 63 6f 6e 73 |=r.botto|m-4-cons|
|00001020| 6f 6c 65 5f 6f 70 74 69 | 6f 6e 73 2e 74 6f 70 3b |ole_opti|ons.top;|
|00001030| 0d 09 09 63 6f 6e 73 6f | 6c 65 5f 6f 70 74 69 6f |...conso|le_optio|
|00001040| 6e 73 2e 6e 72 6f 77 73 | 2f 3d 63 6f 6e 73 6f 6c |ns.nrows|/=consol|
|00001050| 65 5f 6f 70 74 69 6f 6e | 73 2e 74 78 53 69 7a 65 |e_option|s.txSize|
|00001060| 2a 34 2f 33 2d 31 3b 20 | 2f 2a 20 65 73 74 69 6d |*4/3-1; |/* estim|
|00001070| 61 74 65 20 6c 69 6e 65 | 20 73 70 61 63 69 6e 67 |ate line| spacing|
|00001080| 20 2a 2f 0d 09 23 65 6e | 64 69 66 0d 09 23 69 66 | */..#en|dif..#if|
|00001090| 20 5f 5f 4d 57 45 52 4b | 53 5f 5f 0d 09 09 53 49 | __MWERK|S__...SI|
|000010a0| 4f 55 58 53 65 74 74 69 | 6e 67 73 2e 74 6f 70 70 |OUXSetti|ngs.topp|
|000010b0| 69 78 65 6c 3d 4c 4d 47 | 65 74 4d 42 61 72 48 65 |ixel=LMG|etMBarHe|
|000010c0| 69 67 68 74 28 29 2b 31 | 39 3b 09 2f 2f 20 61 6c |ight()+1|9;.// al|
|000010d0| 6c 6f 77 20 66 6f 72 20 | 6d 65 6e 75 20 62 61 72 |low for |menu bar|
|000010e0| 20 61 6e 64 20 74 69 74 | 6c 65 20 62 61 72 0d 09 | and tit|le bar..|
|000010f0| 09 53 49 4f 55 58 53 65 | 74 74 69 6e 67 73 2e 6c |.SIOUXSe|ttings.l|
|00001100| 65 66 74 70 69 78 65 6c | 3d 31 3b 0d 09 09 53 49 |eftpixel|=1;...SI|
|00001110| 4f 55 58 53 65 74 74 69 | 6e 67 73 2e 72 6f 77 73 |OUXSetti|ngs.rows|
|00001120| 3d 72 2e 62 6f 74 74 6f | 6d 2d 34 2d 53 49 4f 55 |=r.botto|m-4-SIOU|
|00001130| 58 53 65 74 74 69 6e 67 | 73 2e 74 6f 70 70 69 78 |XSetting|s.toppix|
|00001140| 65 6c 3b 0d 09 09 53 49 | 4f 55 58 53 65 74 74 69 |el;...SI|OUXSetti|
|00001150| 6e 67 73 2e 72 6f 77 73 | 2f 3d 53 49 4f 55 58 53 |ngs.rows|/=SIOUXS|
|00001160| 65 74 74 69 6e 67 73 2e | 66 6f 6e 74 73 69 7a 65 |ettings.|fontsize|
|00001170| 2a 34 2f 33 2d 31 3b 20 | 2f 2a 20 65 73 74 69 6d |*4/3-1; |/* estim|
|00001180| 61 74 65 20 6c 69 6e 65 | 20 73 70 61 63 69 6e 67 |ate line| spacing|
|00001190| 20 2a 2f 0d 0d 09 09 2f | 2f 20 54 68 65 73 65 20 | */..../|/ These |
|000011a0| 73 65 74 74 69 6e 67 73 | 20 61 70 70 72 6f 78 69 |settings| approxi|
|000011b0| 6d 61 74 65 20 74 68 65 | 20 62 65 68 61 76 69 6f |mate the| behavio|
|000011c0| 72 20 6f 66 20 74 68 65 | 20 54 48 49 4e 4b 20 43 |r of the| THINK C|
|000011d0| 20 63 6f 6e 73 6f 6c 65 | 2e 0d 09 09 53 49 4f 55 | console|....SIOU|
|000011e0| 58 53 65 74 74 69 6e 67 | 73 2e 61 75 74 6f 63 6c |XSetting|s.autocl|
|000011f0| 6f 73 65 6f 6e 71 75 69 | 74 3d 30 3b 0d 09 09 53 |oseonqui|t=0;...S|
|00001200| 49 4f 55 58 53 65 74 74 | 69 6e 67 73 2e 73 68 6f |IOUXSett|ings.sho|
|00001210| 77 73 74 61 74 75 73 6c | 69 6e 65 3d 30 3b 0d 09 |wstatusl|ine=0;..|
|00001220| 09 53 49 4f 55 58 53 65 | 74 74 69 6e 67 73 2e 61 |.SIOUXSe|ttings.a|
|00001230| 73 6b 74 6f 73 61 76 65 | 6f 6e 63 6c 6f 73 65 3d |sktosave|onclose=|
|00001240| 30 3b 0d 09 23 65 6e 64 | 69 66 0d 09 23 69 66 20 |0;..#end|if..#if |
|00001250| 30 20 26 26 20 5f 5f 4d | 57 45 52 4b 53 5f 5f 0d |0 && __M|WERKS__.|
|00001260| 09 09 2f 2a 0d 09 09 09 | 54 68 69 73 20 63 6f 64 |../*....|This cod|
|00001270| 65 20 70 72 6f 62 61 62 | 6c 79 20 66 61 69 6c 73 |e probab|ly fails|
|00001280| 20 75 6e 64 65 72 20 43 | 57 20 35 2e 35 2e 20 54 | under C|W 5.5. T|
|00001290| 68 65 20 47 65 74 50 6f | 72 74 20 72 65 74 75 72 |he GetPo|rt retur|
|000012a0| 6e 73 20 61 20 77 69 6e | 64 6f 77 20 70 6f 69 6e |ns a win|dow poin|
|000012b0| 74 65 72 0d 09 09 09 70 | 72 65 73 75 6d 61 62 6c |ter....p|resumabl|
|000012c0| 79 20 63 6f 72 72 65 73 | 70 6f 6e 64 69 6e 67 20 |y corres|ponding |
|000012d0| 74 6f 20 74 68 65 20 63 | 6f 6e 73 6f 6c 65 2c 20 |to the c|onsole, |
|000012e0| 0d 09 09 09 62 75 74 20 | 73 75 62 73 65 71 75 65 |....but |subseque|
|000012f0| 6e 74 20 61 74 74 65 6d | 70 74 73 20 74 6f 20 75 |nt attem|pts to u|
|00001300| 73 65 20 74 68 61 74 20 | 77 69 6e 64 6f 77 20 70 |se that |window p|
|00001310| 6f 69 6e 74 65 72 20 63 | 72 61 73 68 2c 20 65 2e |ointer c|rash, e.|
|00001320| 67 2e 20 69 6e 20 53 65 | 74 57 54 69 74 6c 65 2e |g. in Se|tWTitle.|
|00001330| 0d 09 09 09 49 20 72 65 | 70 6f 72 74 65 64 20 74 |....I re|ported t|
|00001340| 68 65 20 62 75 67 20 74 | 6f 20 4d 65 74 72 6f 77 |he bug t|o Metrow|
|00001350| 65 72 6b 73 2e 0d 09 09 | 2a 2f 0d 09 09 52 65 63 |erks....|*/...Rec|
|00001360| 74 20 72 3b 0d 09 09 47 | 44 48 61 6e 64 6c 65 20 |t r;...G|DHandle |
|00001370| 64 65 76 69 63 65 3b 0d | 09 09 57 69 6e 64 6f 77 |device;.|..Window|
|00001380| 50 74 72 20 77 69 6e 64 | 6f 77 3b 0d 09 0d 09 09 |Ptr wind|ow;.....|
|00001390| 70 72 69 6e 74 66 28 22 | 5c 6e 22 29 3b 0d 09 09 |printf("|\n");...|
|000013a0| 47 65 74 50 6f 72 74 28 | 26 77 69 6e 64 6f 77 29 |GetPort(|&window)|
|000013b0| 3b 0d 09 09 64 65 76 69 | 63 65 3d 47 65 74 57 69 |;...devi|ce=GetWi|
|000013c0| 6e 64 6f 77 44 65 76 69 | 63 65 28 77 69 6e 64 6f |ndowDevi|ce(windo|
|000013d0| 77 29 3b 0d 09 09 69 66 | 28 64 65 76 69 63 65 3d |w);...if|(device=|
|000013e0| 3d 4e 55 4c 4c 29 72 65 | 74 75 72 6e 3b 0d 09 09 |=NULL)re|turn;...|
|000013f0| 72 3d 28 2a 2a 64 65 76 | 69 63 65 29 2e 67 64 52 |r=(**dev|ice).gdR|
|00001400| 65 63 74 3b 0d 09 09 69 | 66 28 47 65 74 4d 61 69 |ect;...i|f(GetMai|
|00001410| 6e 44 65 76 69 63 65 28 | 29 3d 3d 64 65 76 69 63 |nDevice(|)==devic|
|00001420| 65 29 72 2e 74 6f 70 2b | 3d 4c 4d 47 65 74 4d 42 |e)r.top+|=LMGetMB|
|00001430| 61 72 48 65 69 67 68 74 | 28 29 3b 0d 09 09 72 2e |arHeight|();...r.|
|00001440| 74 6f 70 2b 3d 31 39 3b | 09 09 2f 2f 20 61 6c 6c |top+=19;|..// all|
|00001450| 6f 77 20 66 6f 72 20 74 | 69 74 6c 65 20 62 61 72 |ow for t|itle bar|
|00001460| 0d 09 09 72 2e 62 6f 74 | 74 6f 6d 2d 3d 31 3b 09 |...r.bot|tom-=1;.|
|00001470| 2f 2f 20 61 6c 6c 6f 77 | 20 66 6f 72 20 31 2d 70 |// allow| for 1-p|
|00001480| 69 78 65 6c 20 66 72 61 | 6d 65 0d 09 09 72 2e 6c |ixel fra|me...r.l|
|00001490| 65 66 74 2b 3d 31 3b 09 | 09 2f 2f 20 61 6c 6c 6f |eft+=1;.|.// allo|
|000014a0| 77 20 66 6f 72 20 31 2d | 70 69 78 65 6c 20 66 72 |w for 1-|pixel fr|
|000014b0| 61 6d 65 0d 09 09 69 66 | 28 72 2e 72 69 67 68 74 |ame...if|(r.right|
|000014c0| 2d 72 2e 6c 65 66 74 3e | 35 30 30 29 72 2e 72 69 |-r.left>|500)r.ri|
|000014d0| 67 68 74 3d 72 2e 6c 65 | 66 74 2b 35 30 30 3b 0d |ght=r.le|ft+500;.|
|000014e0| 09 2f 2f 09 53 69 7a 65 | 57 69 6e 64 6f 77 28 77 |.//.Size|Window(w|
|000014f0| 69 6e 64 6f 77 2c 72 2e | 72 69 67 68 74 2d 72 2e |indow,r.|right-r.|
|00001500| 6c 65 66 74 2c 72 2e 62 | 6f 74 74 6f 6d 2d 72 2e |left,r.b|ottom-r.|
|00001510| 74 6f 70 2c 31 29 3b 0d | 09 09 4d 6f 76 65 57 69 |top,1);.|..MoveWi|
|00001520| 6e 64 6f 77 28 77 69 6e | 64 6f 77 2c 72 2e 6c 65 |ndow(win|dow,r.le|
|00001530| 66 74 2c 72 2e 74 6f 70 | 2c 31 29 3b 0d 09 23 65 |ft,r.top|,1);..#e|
|00001540| 6e 64 69 66 0d 7d 00 00 | 00 00 00 00 00 00 00 00 |ndif.}..|........|
|00001550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001580| 00 00 01 00 00 00 02 5e | 00 00 01 5e 00 00 00 7a |.......^|...^...z|
|00001590| 0d 09 73 2d 3e 63 6f 6d | 6d 61 6e 64 73 5b 33 5d |..s->com|mands[3]|
|000015a0| 2e 70 61 72 61 6d 31 3d | 30 3b 0d 09 73 2d 3e 63 |.param1=|0;..s->c|
|000015b0| 17 4d 61 78 69 6d 69 7a | 65 43 6f 6e 73 6f 6c 65 |.Maximiz|eConsole|
|000015c0| 48 65 69 67 68 74 2e 63 | 02 00 00 00 54 45 58 54 |Height.c|....TEXT|
|000015d0| 00 00 54 45 58 54 43 57 | 49 45 01 00 00 50 03 60 |..TEXTCW|IE...P.`|
|000015e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015f0| 00 00 a5 a7 b9 3a 00 00 | 14 c6 00 00 02 d8 61 72 |.....:..|......ar|
|00001600| 65 57 61 76 65 54 61 62 | 6c 65 2c 70 75 72 72 29 |eWaveTab|le,purr)|
|00001610| 3b 09 2f 2f 20 61 70 70 | 65 6e 64 20 73 71 75 61 |;.// app|end squa|
|00001620| 72 65 57 61 76 65 54 61 | 62 6c 65 0d 09 44 69 73 |reWaveTa|ble..Dis|
|00001630| 70 6f 73 65 48 61 6e 64 | 6c 65 28 28 48 61 6e 64 |poseHand|le((Hand|
|00001640| 6c 65 29 73 71 75 61 72 | 65 57 61 76 65 54 61 62 |le)squar|eWaveTab|
|00001650| 6c 65 29 3b 0d 09 0d 09 | 61 62 6f 72 74 53 6e 64 |le);....|abortSnd|
|00001660| 3d 70 75 72 72 3b 0d 09 | 69 66 28 48 61 6e 64 54 |=purr;..|if(HandT|
|00001670| 6f 48 61 6e 64 28 26 61 | 62 6f 72 74 53 6e 64 29 |oHand(&a|bortSnd)|
|00001680| 00 00 00 1e 00 29 00 07 | 01 6a 01 3e 00 29 00 07 |.....)..|.j.>.)..|
|00001690| 01 6a 01 3e 00 00 00 00 | 00 00 00 00 00 00 00 00 |.j.>....|........|
|000016a0| 00 00 00 00 00 0a 00 00 | 0d ee 00 4b 00 00 00 00 |........|...K....|
|000016b0| 00 00 00 d6 00 06 00 34 | 00 00 0d 5c 00 48 00 19 |.......4|...\.H..|
|000016c0| 7a e2 80 00 00 d9 01 d5 | 01 f0 02 8e 94 20 00 00 |z.......|..... ..|
|000016d0| 00 00 00 00 15 71 64 2e | 73 63 72 65 65 6e 42 69 |.....qd.|screenBi|
|000016e0| 74 73 2e 62 6f 75 6e 64 | 73 20 00 1a 00 00 0c 85 |ts.bound|s ......|
|000016f0| 00 40 00 19 7a 76 00 00 | 0b 4d 42 61 72 48 65 69 |.@..zv..|.MBarHei|
|00001700| 67 68 74 20 00 2e 00 00 | 0c 85 00 40 00 19 7a 66 |ght ....|...@..zf|
|00001710| 80 00 00 ed 01 d9 02 04 | 02 92 94 20 00 00 00 00 |........|... ....|
|00001720| 00 00 0f 63 6f 6e 73 6f | 6c 65 5f 6f 70 74 69 6f |...conso|le_optio|
|00001730| 6e 73 00 2c 00 00 0d 8a | 00 49 00 19 79 ea 00 00 |ns.,....|.I..y...|
|00001740| 1d 63 6f 6e 73 6f 6c 65 | 5f 6f 70 74 69 6f 6e 73 |.console|_options|
|00001750| 2e 74 78 53 69 7a 65 2a | 34 2f 33 2d 31 20 00 12 |.txSize*|4/3-1 ..|
|00001760| 00 00 0c 85 00 40 00 19 | 76 ae 00 00 03 71 44 20 |.....@..|v....qD |
|00001770| 00 1a 00 00 0c 85 00 40 | 00 19 76 96 00 00 0b 4d |.......@|..v....M|
|00001780| 42 61 72 48 65 69 67 68 | 74 20 00 00 00 48 00 09 |BarHeigh|t ...H..|
|00001790| 4d 6f 6e 61 63 6f 00 00 | 00 00 00 00 00 00 00 00 |Monaco..|........|
|000017a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017b0| 00 03 00 04 00 74 00 13 | 01 86 02 72 00 74 00 13 |.....t..|...r.t..|
|000017c0| 01 86 02 72 ad bd 72 cb | 00 00 10 e8 00 00 10 ec |...r..r.|........|
|000017d0| 00 00 0b 23 00 00 00 00 | 00 04 00 01 00 01 00 00 |...#....|........|
|000017e0| 01 00 00 00 02 5e 00 00 | 01 5e 00 00 00 7a 01 a9 |.....^..|.^...z..|
|000017f0| 22 18 37 16 00 00 00 1c | 00 7a 00 03 4d 50 53 52 |".7.....|.z..MPSR|
|00001800| 00 01 00 22 42 4b 50 54 | 00 00 00 3a 44 54 56 55 |..."BKPT|...:DTVU|
|00001810| 00 00 00 46 4d 57 42 42 | 00 00 00 52 03 f0 ff ff |...FMWBB|...R....|
|00001820| 00 00 00 00 00 00 00 00 | 03 ed ff ff 00 00 01 0a |........|........|
|00001830| 00 00 00 00 44 96 ff ff | 00 00 00 22 00 00 00 00 |....D...|..."....|
|00001840| 3d e2 ff ff 00 00 00 30 | 00 00 00 00 03 f0 ff ff |=......0|........|
|00001850| 00 00 01 56 00 00 00 00 | 00 00 00 00 00 00 00 00 |...V....|........|
|00001860| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001870| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+